package com.mini.repository;

import com.mini.model.BusinessChanceCommentRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface BusinessChanceCommentRecordRepository extends JpaRepository<BusinessChanceCommentRecord, Long> , JpaSpecificationExecutor<BusinessChanceCommentRecord> {

    BusinessChanceCommentRecord findFirstByChanceIdOrderByCreateTimeDesc(Long chanceId);

    List<BusinessChanceCommentRecord> findByChanceIdIn(Set<Long> chanceIds);
}
